package com.atguigu.tingshu.album.mapper;

import com.atguigu.tingshu.model.album.BaseCategoryView;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface BaseCategoryViewMapper extends BaseMapper<BaseCategoryView> {

    /**
     * 根据分类3Id查询分类视图
     * @param category3Id
     * @return
     */
    @Select("select * from base_category_view where category3_id = #{category3Id}")
    BaseCategoryView selectCategoryView(@Param("category3Id") Long category3Id);
}
